//
//  CellDescriptorModel.swift
//  SwiftDemo
//
//  Created by wangzhaomin on 1/19/16.
//  Copyright © 2016 SteamCat_343. All rights reserved.
//

import Foundation

class CellDescriptorModel:NSObject {

    /// 是否可以展开
    var isExpandable: Bool!
    /// 是否在展开状态
    var isExpand: Bool!
    /// 是否可见
    var isVisible: Bool!
    /// 控制cell的值
    var value: String!
    /// 主标题文本
    var primaryTitle: String!
    /// 二级标题文本
    var secondaryTitle: String!
    /// cell的标识符
    var cellIdentifier: String!
    /// 可展开cell的展开行数
    var additionalRows: NSInteger!
    /// 是否被选中
    var beSelected: Bool!
    
    init(isExpandable: Bool, isExpand: Bool, isVisible: Bool, value: String, beSelected: Bool, primaryTitle: String, secondaryTitle: String, cellIdentifier: String, additionalRows: NSInteger) {
        self.isExpandable = isExpandable
        self.isExpand = isExpand
        self.isVisible = isVisible
        self.beSelected = beSelected
        self.value = value
        self.primaryTitle = primaryTitle
        self.secondaryTitle = secondaryTitle
        self.cellIdentifier = cellIdentifier
        self.additionalRows = additionalRows
    }
}